package config

type App struct {
	Env     string `mapstructure:"env" json:"env" yaml:"env"`
	Port    string `mapstructure:"port" json:"port" yaml:"port"`
	AppName string `mapstructure:"app_name" json:"app_name" yaml:"app_name"`
	AppUrl  string `mapstructure:"app_url" json:"app_url" yaml:"app_url"`
}

type Postgres struct {
	Host     string `mapstructure:"host" json:"host" yaml:"host"`
	Port     string `mapstructure:"port" json:"port" yaml:"port"`
	User     string `mapstructure:"user" json:"user" yaml:"user"`
	Password string `mapstructure:"password" json:"password" yaml:"password"`
	DbName   string `mapstructure:"db_name" json:"db_name" yaml:"db_name"`
	SslModel string `mapstructure:"ssl_mode" json:"ssl_mode" yaml:"ssl_mode"`
	TimeZone string `mapstructure:"time_zone" json:"time_zone" yaml:"time_zone"`
}

type Configuration struct {
	App      App      `mapstructure:"app" json:"app" yaml:"app"`
	Postgres Postgres `mapstructure:"postgres" json:"postgres" yaml:"postgres"`
}
